package com.my.user;

import com.alibaba.dubbo.config.spring.context.annotation.DubboComponentScan;
import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;


@EnableDubbo//开启dubbo自动配置
// @ImportResource(locations = "classpath:spring-dubbo.xml")//xml配置方式
@SpringBootApplication
//@DubboComponentScan(basePackages = "com.my.user")//扫描配置类和组件
public class UserSpringApplication {
    public static void main(String[] args) {
        SpringApplication.run(UserSpringApplication.class);
    }
}
